package com.brsya.movie.contract;


import com.brsya.base.base.BaseView;
import com.brsya.base.bean.BaseObjectBean;
import com.brsya.base.bean.PlayAddressBean;
import com.brsya.base.bean.UpdateBean;

import java.util.Map;

import io.reactivex.rxjava3.core.Observable;

/**
 * Created by Brsya
 * CreateDate: 2022/4/29  16:53
 * Description:
 * 更新
 */
public interface UpdateContract {
    interface Model {
        /**
         * 获取更新日志
         */
        Observable<BaseObjectBean<UpdateBean>> getUpdateLog(Map<String, Object> par);

        /**
         * 获取第三方接口
         */
        Observable<BaseObjectBean<PlayAddressBean>> getPlayAddressNew(Map<String, Object> par);
    }

    interface View extends BaseView {
        /**
         * 显示更新弹框
         *
         * @param bean 更新数据
         */
        void showUpdateDialog(UpdateBean bean);
    }


    interface Presenter {
        /**
         * 获取更新日志
         */
        void getUpdateLog();
        /**
         * 获取第三方接口
         */
        void getPlayAddressNew();

    }
}
